package com.neusoft.elmboot.controller;

import java.math.BigDecimal;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.neusoft.elmboot.po.IntegralTrans;
import com.neusoft.elmboot.service.IntegralTransService;

@RestController
@RequestMapping("/IntegralTransController")
public class IntegralTransController {
	@Autowired
	IntegralTransService integralTransService;
	
	@RequestMapping("/listIntergralTransByUserId")
	public List<IntegralTrans> listIntergralTransByUserId(String userId) throws Exception {
		return integralTransService.listIntergralTransByUserId(userId);
	}
	
	@RequestMapping("/saveIntegralTrans")
	public int saveIntegralTrans(IntegralTrans integralTrans) throws Exception {
		return integralTransService.saveIntegralTrans(integralTrans);
	}
	
}
